import axios from '@/utils/axios'

export const getRoleAppRelationList = (params: BaseRoleAppRelation): Promise<ApiResult<Array<BaseRoleAppRelation>>> => {
    return axios.get(`base/role/app/relation/list`, { params })
}

export const postRoleAppRelation = (params: {roleId: string, appIds: Array<number>}): Promise<ApiResult<null>> => {
    return axios.post(`base/role/app/relation/allocateAppByRoleId`, {}, {params})
}